package com.code.day17JiHe.Stream;

import lombok.extern.java.Log;

import java.util.stream.Stream;

public class Test03longcount {
    public static void main(String[] args) {
        Stream<String> stream =Stream.of("张三", "李四", "王五", "赵六", "孙七");
//       获取字符串的长度
        long count = stream.count();
        System.out.println(count);
    }

}
